<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
     

<h:head>
        <title>Central de Estagio Aluno</title>
        <link rel="StyleSheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/estilo.css" media="screen" />
        <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/css/tema/theme.css"/>
</h:head>
<h:body>
<h:form id="DadosAlunos">
<p:tabView id="tabDadosAlunos">  
	
    <p:tab id="tabDadosPessoais" title="Dados Pessoais"> 
    <p:panel header="DADOS PESSOAIS" id="pnlDados">
       	<p:panelGrid styleClass="semBorda">
        	<p:row>
        	<p:column colspan="2">Nome da Mãe * </p:column>
            <p:column colspan="2">Nome do Pai</p:column>
            </p:row>
   			
   			<p:row>
   			<p:column colspan="2"><p:inputText id="nomeMae" size="50" value="#{MBAluno.beanAluno.maeAluno}" disabled="#{MBAluno.habilitar}" /> </p:column>
   			<p:column colspan="2"><p:inputText size="50" value="#{MBAluno.beanAluno.paiAluno}" disabled="#{MBAluno.habilitar}"/></p:column>
   			</p:row>
        	
        	<p:row>
        	<p:column>CPF * </p:column>
            <p:column>RG *</p:column>
            <p:column colspan="2">Sexo *</p:column>
            </p:row>
            
            <p:row>
            <p:column><p:inputMask mask="999.999.999-99" value="#{MBAluno.beanAluno.CPFAluno}" disabled="#{MBAluno.habilitar}" /></p:column>
   			<p:column><p:inputText size="20" value="#{MBAluno.beanAluno.RGAluno}" disabled="#{MBAluno.habilitar}" /></p:column>
   			<p:column colspan="2"><p:selectOneRadio value="#{MBAluno.beanAluno.sexoAluno}" disabled="#{MBAluno.habilitar}" >  
   				<f:selectItem itemLabel="Masculino" itemValue="M" />  
            	<f:selectItem itemLabel="Feminino" itemValue="F" />    
        	</p:selectOneRadio></p:column>
   			</p:row>
            
            <p:row>
            <p:column>Estado Civil *</p:column>
           	<p:column>CNH * </p:column>
            <p:column>Possui Deficiência? *</p:column>
            <p:column><h:outputText value="Tipo de Deficiência" rendered="#{MBAluno.tipodef}"/></p:column>
   			</p:row>
   			
   			<p:row>
   			<p:column><p:selectOneMenu value="#{MBAluno.beanAluno.estCivilAluno}" disabled="#{MBAluno.habilitar}" > 
   				<f:selectItem itemLabel="Selecione..." itemValue="" /> 
            	<f:selectItem itemLabel="Casado(a)" itemValue="Casado" />  
            	<f:selectItem itemLabel="Solteiro(a)" itemValue="Solteiro" /> 
            	<f:selectItem itemLabel="Separado(a)" itemValue="Separado" /> 
            	<f:selectItem itemLabel="Divorciado(a)" itemValue="Divorciado" />
            	<f:selectItem itemLabel="Viúvo(a)" itemValue="Viuvo" />    
        	</p:selectOneMenu></p:column>
   			<p:column><p:selectOneMenu value="#{MBAluno.beanAluno.CNHAluno}" disabled="#{MBAluno.habilitar}"  > 
   				<f:selectItem itemLabel="Selecione..." itemValue="" /> 
            	<f:selectItem itemLabel="Carro" itemValue="Carro" />  
            	<f:selectItem itemLabel="Moto" itemValue="Moto" /> 
            	<f:selectItem itemLabel="Carro e Moto" itemValue="Carro e Moto" /> 
            	<f:selectItem itemLabel="Não Possui" itemValue="Não Possui" />    
        	</p:selectOneMenu></p:column>
        	<p:column><p:selectOneMenu value="#{MBAluno.beanAluno.deficienciaAluno}" disabled="#{MBAluno.habilitar}" >
        		<f:selectItem itemLabel="Selecione..." itemValue="" />
            	<f:selectItem itemLabel="Sim" itemValue="S" />  
            	<f:selectItem itemLabel="Não" itemValue="N" />   
            	<p:ajax listener="#{MBAluno.selecionarTipoDef}" update="pnlDados" />
        	</p:selectOneMenu></p:column>
        	<p:column><p:inputText size="30" value="#{MBAluno.beanAluno.tipoDefAluno}" disabled="#{MBAluno.habilitar}" rendered="#{MBAluno.tipodef}"/></p:column>
   			</p:row>
   		</p:panelGrid>
   	</p:panel>
   	<br />
    <p:panel header="ENDEREÇO">
   		<p:panelGrid styleClass="semBorda">
   		
   			<p:row><p:column>CEP*</p:column></p:row>
   			
   			<p:row><p:column><p:inputMask mask="99.999-999" value="#{MBAluno.beanAluno.cepAluno}" disabled="#{MBAluno.habilitar}" /></p:column></p:row>
   			
   			<p:row><p:column colspan="2">Endereço * </p:column>
   			<p:column colspan="2">Numero * </p:column></p:row>
        	
        	<p:row><p:column colspan="2"><p:inputText size="80" value="#{MBAluno.beanAluno.ruaAluno}" disabled="#{MBAluno.habilitar}" /></p:column>
        	<p:column colspan="2"><p:inputText size="15" value="#{MBAluno.beanAluno.numAluno}" disabled="#{MBAluno.habilitar}" /></p:column></p:row>
        	
        	<p:row>
            <p:column>Complemento</p:column>
            <p:column>Bairro *</p:column>
            </p:row>
            
            <p:row>
   			<p:column><p:inputText size="50" value="#{MBAluno.beanAluno.complAluno}" disabled="#{MBAluno.habilitar}"/></p:column>
   			<p:column ><p:inputText size="40" value="#{MBAluno.beanAluno.bairroAluno}" disabled="#{MBAluno.habilitar}" /></p:column>
   			</p:row>
   			
   			<p:row>
   			<p:column colspan="2">Cidade *</p:column>
            <p:column>UF *</p:column>
            </p:row>
            
            <p:row>
            <p:column colspan="2"><p:inputText size="60" value="#{MBAluno.beanAluno.cidadeAluno}" disabled="#{MBAluno.habilitar}"/></p:column>
   			<p:column><p:selectOneMenu value="#{MBAluno.beanAluno.ufAluno}" disabled="#{MBAluno.habilitar}">  
   				<f:selectItem itemLabel="Selecione..." itemValue="" />
            	<f:selectItem itemLabel="AC" itemValue="AC" />  
            	<f:selectItem itemLabel="AL" itemValue="AL" />
            	<f:selectItem itemLabel="AP" itemValue="AP" />
            	<f:selectItem itemLabel="AM" itemValue="AM" />
            	<f:selectItem itemLabel="BA" itemValue="BA" />
            	<f:selectItem itemLabel="CE" itemValue="CE" />
            	<f:selectItem itemLabel="DF" itemValue="DF" />
            	<f:selectItem itemLabel="ES" itemValue="ES" />
            	<f:selectItem itemLabel="GO" itemValue="GO" />
            	<f:selectItem itemLabel="MA" itemValue="MA" />
            	<f:selectItem itemLabel="MT" itemValue="MT" />
            	<f:selectItem itemLabel="MS" itemValue="MS" />
            	<f:selectItem itemLabel="MG" itemValue="MG" />
            	<f:selectItem itemLabel="PA" itemValue="PA" />
            	<f:selectItem itemLabel="PB" itemValue="PB" />
            	<f:selectItem itemLabel="PR" itemValue="PR" />
            	<f:selectItem itemLabel="PE" itemValue="PE" />
            	<f:selectItem itemLabel="PI" itemValue="PI" />
            	<f:selectItem itemLabel="RJ" itemValue="RJ" />
            	<f:selectItem itemLabel="RN" itemValue="RN" />
            	<f:selectItem itemLabel="RS" itemValue="RS" />
            	<f:selectItem itemLabel="RO" itemValue="RO" />
            	<f:selectItem itemLabel="RR" itemValue="RR" />
            	<f:selectItem itemLabel="SC" itemValue="SC" />
            	<f:selectItem itemLabel="SP" itemValue="SP" />
            	<f:selectItem itemLabel="SE" itemValue="SE" />
            	<f:selectItem itemLabel="TO" itemValue="TO" />
           	</p:selectOneMenu></p:column>
           	</p:row>           	
        </p:panelGrid>
   </p:panel>
   <br />
   <p:panel header="CONTATO" >
   		<p:panelGrid styleClass="semBorda">       	
           	<p:row>
   			<p:column>Telefone *</p:column>
            <p:column>Telefone 2</p:column>
            <p:column>Telefone 3</p:column>
            </p:row>
            
            <p:row>
   			<p:column><p:inputText size="25" value="#{MBAluno.beanAluno.tel1Aluno}" disabled="#{MBAluno.habilitar}" /></p:column>
   			<p:column><p:inputText size="25" value="#{MBAluno.beanAluno.tel2Aluno}" disabled="#{MBAluno.habilitar}"/></p:column>
   			<p:column><p:inputText size="25" value="#{MBAluno.beanAluno.tel3Aluno}" disabled="#{MBAluno.habilitar}"/></p:column>
   			</p:row>
   			
   			<p:row>
   			<p:column colspan="2">Email *</p:column>
            <p:column colspan="2">Email 2</p:column>
            </p:row>
            
            <p:row>
   			<p:column colspan="2"><p:inputText size="40" value="#{MBAluno.beanAluno.email1Aluno}" disabled="#{MBAluno.habilitar}" /></p:column>
   			<p:column colspan="2"><p:inputText size="40" value="#{MBAluno.beanAluno.email2Aluno}" disabled="#{MBAluno.habilitar}"/></p:column>
   			</p:row>
   		</p:panelGrid> 
  	 </p:panel>
  	 <div align="right">
  	 <p:commandButton value="Cancelar" icon="ui-icon-circle-plus"/>
  	 <p:commandButton value="#{MBAluno.nomeBotao}" icon="ui-icon-circle-plus" id="btnSalvarAluno" ajax="false" action="#{MBAluno.save}" /> 
  	 </div> 	  
  	</p:tab>
        
  	<p:tab id="tabFormação" title="Formação Acadêmica">
  	<div align="center">
   		<p:dataTable id="tbFormação" var="esc" value="#{MBEscolaridade.listaEscolaridade}" emptyMessage="Nenhum registro foi localizado..." rowIndexVar="index" >
    		<p:column>    
        		<f:facet name="header">Nível</f:facet>    
        		<h:outputText value="#{esc.nivelEsc}" />         
    		</p:column>    		  
     		<p:column>    
        		<f:facet name="header">Instituição</f:facet>    
        		<h:outputText value="#{esc.instituicaoEsc}" />         
    		</p:column>
    		<p:column>    
        		<f:facet name="header">Situação</f:facet>    
        		<h:outputText value="#{esc.situacaoEsc}" />         
    		</p:column>
    		
    		<p:column styleClass="textoCen"> 	   
        	<p:commandButton icon="ui-icon-pencil" title="Editar" action="#{MBEscolaridade.prepararEsc}" 
        					update=":DadosAlunos:tabDadosAlunos:pnlEsc1, :DadosAlunos:tabDadosAlunos:pnlEsc2, :DadosAlunos:tabDadosAlunos:pnlEsc3" 
        					oncomplete="addForm.show()"/> 
        	<p:commandButton icon="ui-icon-trash" title="Remover" action="#{MBEscolaridade.prepararEsc}" oncomplete="excluirEsc.show()"/> 
        	</p:column>
    	</p:dataTable>
	</div>
	<br/>
	<br/>
	<div align="right">
		<p:commandButton icon="ui-icon-circle-plus" value="Adicionar Nova Formação" action="#{MBEscolaridade.prepararNovo}" update="pnlEsc1, pnlEsc2, pnlEsc3" oncomplete="addForm.show()"/>
	</div>
	
	<p:dialog id="addForm" widgetVar="addForm" header="Nova Formação" modal="true" position="center" 
				closable="false" height="250" width="800">  
        	<p:panelGrid styleClass="semBorda" id="pnlEsc1">
       		<p:row>
        	<p:column>Nível de Escolaridade * </p:column>
        	<p:column><h:outputText value="Curso" rendered="#{MBEscolaridade.curso}" /></p:column>
        	</p:row>
        	<p:row>
        	<p:column><p:selectOneMenu value="#{MBEscolaridade.beanEscolaridade.nivelEsc}" > 
   				<f:selectItem itemLabel="Selecione..." itemValue="" /> 
            	<f:selectItem itemLabel="Fundamental" itemValue="Fundamental" />  
            	<f:selectItem itemLabel="Médio" itemValue="Médio" /> 
            	<f:selectItem itemLabel="Técnico" itemValue="Técnico" /> 
            	<f:selectItem itemLabel="Graduação" itemValue="Graduação" /> 
            	<f:selectItem itemLabel="Pós-Graduação" itemValue="Pós-Graduação" /> 
            	<f:selectItem itemLabel="Mestrado" itemValue="Mestrado" /> 
            	<f:selectItem itemLabel="Doutorado" itemValue="Doutorado" /> 
            	<p:ajax listener="#{MBEscolaridade.selecionarNivelEsc}" update="pnlEsc1" />   
        	</p:selectOneMenu></p:column>
        	<p:column><p:inputText size="50" value="#{MBEscolaridade.beanEscolaridade.cursoEsc}" rendered="#{MBEscolaridade.curso}" /></p:column>
        	</p:row>
        	</p:panelGrid>
        	<p:panelGrid styleClass="semBorda" id="pnlEsc2">
        	<p:row>
        	<p:column>Instituição de Ensino * </p:column>
        	<p:column>Cidade * </p:column>
        	<p:column>UF * </p:column>
        	</p:row>
        	<p:row>
  			<p:column><p:inputText size="40" value="#{MBEscolaridade.beanEscolaridade.instituicaoEsc}"/></p:column>
  			<p:column><p:inputText size="40" value="#{MBEscolaridade.beanEscolaridade.cidadeEsc}" /></p:column>
        	<p:column><p:selectOneMenu value="#{MBEscolaridade.beanEscolaridade.ufEsc}">  
   				<f:selectItem itemLabel="Selecione..." itemValue="" />
            	<f:selectItem itemLabel="AC" itemValue="AC" />  
            	<f:selectItem itemLabel="AL" itemValue="AL" />
            	<f:selectItem itemLabel="AP" itemValue="AP" />
            	<f:selectItem itemLabel="AM" itemValue="AM" />
            	<f:selectItem itemLabel="BA" itemValue="BA" />
            	<f:selectItem itemLabel="CE" itemValue="CE" />
            	<f:selectItem itemLabel="DF" itemValue="DF" />
            	<f:selectItem itemLabel="ES" itemValue="ES" />
            	<f:selectItem itemLabel="GO" itemValue="GO" />
            	<f:selectItem itemLabel="MA" itemValue="MA" />
            	<f:selectItem itemLabel="MT" itemValue="MT" />
            	<f:selectItem itemLabel="MS" itemValue="MS" />
            	<f:selectItem itemLabel="MG" itemValue="MG" />
            	<f:selectItem itemLabel="PA" itemValue="PA" />
            	<f:selectItem itemLabel="PB" itemValue="PB" />
            	<f:selectItem itemLabel="PR" itemValue="PR" />
            	<f:selectItem itemLabel="PE" itemValue="PE" />
            	<f:selectItem itemLabel="PI" itemValue="PI" />
            	<f:selectItem itemLabel="RJ" itemValue="RJ" />
            	<f:selectItem itemLabel="RN" itemValue="RN" />
            	<f:selectItem itemLabel="RS" itemValue="RS" />
            	<f:selectItem itemLabel="RO" itemValue="RO" />
            	<f:selectItem itemLabel="RR" itemValue="RR" />
            	<f:selectItem itemLabel="SC" itemValue="SC" />
            	<f:selectItem itemLabel="SP" itemValue="SP" />
            	<f:selectItem itemLabel="SE" itemValue="SE" />
            	<f:selectItem itemLabel="TO" itemValue="TO" />
           	</p:selectOneMenu></p:column>
  			</p:row>
  			</p:panelGrid>
        	<p:panelGrid styleClass="semBorda" id="pnlEsc3">
        	<p:row>
        	<p:column>Situação * </p:column>
        	<p:column ><h:outputText value="Ano de Conclusão" rendered="#{MBEscolaridade.ano}"/></p:column>
        	</p:row>
        	<p:row>
        	<p:column><p:selectOneMenu value="#{MBEscolaridade.beanEscolaridade.situacaoEsc}" > 
   				<f:selectItem itemLabel="Selecione..." itemValue="" /> 
            	<f:selectItem itemLabel="Cursando" itemValue="Cursando" /> 
            	<f:selectItem itemLabel="Incompleto" itemValue="Incompleto" />
            	<f:selectItem itemLabel="Concluído" itemValue="Concluído" /> 
            	<p:ajax listener="#{MBEscolaridade.selecionarSitEsc}" update="pnlEsc3" />  
           	</p:selectOneMenu></p:column>
  			<p:column><p:inputText size="15" value="#{MBEscolaridade.beanEscolaridade.anoFimEsc}" rendered="#{MBEscolaridade.ano}"/></p:column> 
        	</p:row>
        	</p:panelGrid>
        	<br />
        	<div align="right">
        	<p:commandButton value="Cancelar" icon="ui-icon-circle-arrow-w" action="#{MBEscolaridade.prepararNovo}" oncomplete="addForm.hide()"/>
        	<p:commandButton value="Salvar" icon="ui-icon-circle-plus" action="#{MBEscolaridade.save}" update="tbFormação" oncomplete="addForm.hide()" />
        	</div>
    	</p:dialog>
    	
    	<p:confirmDialog widgetVar="excluirEsc" message="Deseja Excluir?" header="Excluir Formação" severity="alert" modal="true"
		position="center" closable="false" height="70" width="300" resizable="false">
		<div align="center">
		<p:commandButton value="Sim" action="#{MBEscolaridade.remover}" oncomplete="excluirEsc.hide()" update="tbFormação"/>
		<p:commandButton value="Não" onclick="excluirEsc.hide()"/>
		</div>
		</p:confirmDialog>
    </p:tab>
  	
  	<p:tab id="tabCursosComp" title="Cursos Complementares">
  	<div align="center">
   		<p:dataTable id="tbCC" var="cursoc" value="#{MBCursoComplementar.listaCursoComplementar}" emptyMessage="Nenhum registro foi localizado..." rowIndexVar="index">
    		<p:column>    
        		<f:facet name="header">Curso</f:facet>    
        		<h:outputText value="#{cursoc.cursoCC}" />         
    		</p:column>    		  
    		<p:column>    
        		<f:facet name="header">Instituição</f:facet>    
        		<h:outputText value="#{cursoc.instituicaoCC}" />         
    		</p:column>
    		<p:column>    
        		<f:facet name="header">Situação</f:facet>    
        		<h:outputText value="#{cursoc.situacaoCC}" />         
    		</p:column>
    		<p:column styleClass="textoCen"> 	   
        	<p:commandButton icon="ui-icon-pencil" title="Editar" action="#{MBCursoComplementar.prepararCC}" 
        					update=":DadosAlunos:tabDadosAlunos:pnlCC1, :DadosAlunos:tabDadosAlunos:pnlCC2, :DadosAlunos:tabDadosAlunos:pnlCC3" oncomplete="addCurso.show()" /> 
        	<p:commandButton icon="ui-icon-trash" title="Remover" action="#{MBCursoComplementar.prepararCC}" oncomplete="excluirCC.show()"/> 
        	</p:column>
    	</p:dataTable>
 	</div>
 	<br/>
 	<br/>  
 	<div align="right">
		<p:commandButton icon="ui-icon-circle-plus" value="Adicionar Novo Curso" action="#{MBCursoComplementar.prepararNovo}" update="pnlCC1, pnlCC2, pnlCC3" oncomplete="addCurso.show()" />
	</div>
	
	<p:dialog widgetVar="addCurso" header="Novo Curso Complementar" modal="true" position="center" 
				  closable="false" height="250" width="800"> 
        	<p:panelGrid styleClass="semBorda" id="pnlCC1">
       		<p:row>
        	<p:column>Curso * </p:column>
        	</p:row>
        	<p:row>
        	<p:column><p:inputText size="60" value="#{MBCursoComplementar.beanCursoComplementar.cursoCC}" /></p:column>
        	</p:row>
        	</p:panelGrid>
        	<p:panelGrid styleClass="semBorda" id="pnlCC2">
        	<p:row>
        	<p:column>Instituição de Ensino * </p:column>
        	<p:column>Cidade * </p:column>
        	<p:column>UF * </p:column>
        	</p:row>
        	<p:row>
  			<p:column><p:inputText size="40" value="#{MBCursoComplementar.beanCursoComplementar.instituicaoCC}" /></p:column>
  			<p:column><p:inputText size="40" value="#{MBCursoComplementar.beanCursoComplementar.cidadeCC}"/></p:column>
        	<p:column><p:selectOneMenu value="#{MBCursoComplementar.beanCursoComplementar.ufCC}">  
   				<f:selectItem itemLabel="Selecione..." itemValue="" />
            	<f:selectItem itemLabel="AC" itemValue="AC" />  
            	<f:selectItem itemLabel="AL" itemValue="AL" />
            	<f:selectItem itemLabel="AP" itemValue="AP" />
            	<f:selectItem itemLabel="AM" itemValue="AM" />
            	<f:selectItem itemLabel="BA" itemValue="BA" />
            	<f:selectItem itemLabel="CE" itemValue="CE" />
            	<f:selectItem itemLabel="DF" itemValue="DF" />
            	<f:selectItem itemLabel="ES" itemValue="ES" />
            	<f:selectItem itemLabel="GO" itemValue="GO" />
            	<f:selectItem itemLabel="MA" itemValue="MA" />
            	<f:selectItem itemLabel="MT" itemValue="MT" />
            	<f:selectItem itemLabel="MS" itemValue="MS" />
            	<f:selectItem itemLabel="MG" itemValue="MG" />
            	<f:selectItem itemLabel="PA" itemValue="PA" />
            	<f:selectItem itemLabel="PB" itemValue="PB" />
            	<f:selectItem itemLabel="PR" itemValue="PR" />
            	<f:selectItem itemLabel="PE" itemValue="PE" />
            	<f:selectItem itemLabel="PI" itemValue="PI" />
            	<f:selectItem itemLabel="RJ" itemValue="RJ" />
            	<f:selectItem itemLabel="RN" itemValue="RN" />
            	<f:selectItem itemLabel="RS" itemValue="RS" />
            	<f:selectItem itemLabel="RO" itemValue="RO" />
            	<f:selectItem itemLabel="RR" itemValue="RR" />
            	<f:selectItem itemLabel="SC" itemValue="SC" />
            	<f:selectItem itemLabel="SP" itemValue="SP" />
            	<f:selectItem itemLabel="SE" itemValue="SE" />
            	<f:selectItem itemLabel="TO" itemValue="TO" />
           	</p:selectOneMenu></p:column>
  			</p:row>
  			</p:panelGrid>
        	<p:panelGrid styleClass="semBorda" id="pnlCC3">
        	<p:row>
        	<p:column>Situação * </p:column>
        	<p:column ><h:outputText value="Ano de Conclusão" rendered="#{MBCursoComplementar.ano}" /></p:column>
        	</p:row>
        	<p:row>
        	<p:column><p:selectOneMenu value="#{MBCursoComplementar.beanCursoComplementar.situacaoCC}"> 
   				<f:selectItem itemLabel="Selecione..." itemValue="" /> 
            	<f:selectItem itemLabel="Cursando" itemValue="Cursando" /> 
            	<f:selectItem itemLabel="Incompleto" itemValue="Incompleto" /> 
            	<f:selectItem itemLabel="Concluído" itemValue="Concluído" />  
            	<p:ajax listener="#{MBCursoComplementar.selecionarSitEsc}" update="pnlCC3" />   
        	</p:selectOneMenu></p:column>
  			<p:column><p:inputText size="15" value="#{MBCursoComplementar.beanCursoComplementar.anoFimCC}" rendered="#{MBCursoComplementar.ano}"/></p:column> 
        	</p:row>
        	</p:panelGrid>
        	<br />
        	<div align="right">
        	<p:commandButton value="Cancelar" icon="ui-icon-circle-arrow-w" action="#{MBCursoComplementar.prepararNovo}" onclick="addCurso.hide()"/>
        	<p:commandButton value="Salvar" icon="ui-icon-circle-plus" action="#{MBCursoComplementar.save}" update="tbCC" oncomplete="addCurso.hide()" />
        	</div>
		</p:dialog>
		
		<p:confirmDialog widgetVar="excluirCC" message="Deseja Excluir?" header="Excluir Curso Complementar" severity="alert" modal="true"
			position="center" closable="false" height="80" width="300" resizable="false">
			<div align="center">
			<p:commandButton value="Sim" action="#{MBCursoComplementar.remover}" oncomplete="excluirCC.hide()" ajax="false" update="tbCC" />
			<p:commandButton value="Não" onclick="excluirCC.hide()"/>
			</div>
		</p:confirmDialog>
	</p:tab> 
        
    <p:tab id="tabExpProfissionais" title="Experiência Profissional">  
    <div align="center">
        <p:dataTable id="tbExperiencia" var="exp" value="#{MBExperiencia.listaExperiencia}" emptyMessage="Nenhum registro foi localizado..." rowIndexVar="index" >
    		<p:column>    
        		<f:facet name="header">Cargo</f:facet>    
        		<h:outputText value="#{exp.cargoExp}" />         
    		</p:column>    		  
    		<p:column>    
        		<f:facet name="header">Empresa</f:facet>    
        		<h:outputText value="#{exp.empresaExp}" />         
    		</p:column>
    		<p:column>    
        		<f:facet name="header">Admissão</f:facet>    
        		<h:outputText value="#{exp.dtAdmExp}">
        		<f:convertDateTime pattern="dd/MM/yyyy" timeZone="America/Sao_Paulo" />
        		</h:outputText>         
    		</p:column>
    		<p:column>    
        		<f:facet name="header">Demissão</f:facet>    
        		<h:outputText value="#{exp.dtDemEmp}"> 
        		<f:convertDateTime pattern="dd/MM/yyyy" timeZone="America/Sao_Paulo" />
        		</h:outputText>        
    		</p:column>
    		<p:column styleClass="textoCen"> 	   
        	<p:commandButton icon="ui-icon-pencil" title="Editar" action="#{MBExperiencia.prepararExp}"
        					update=":DadosAlunos:tabDadosAlunos:pnlExp" oncomplete="addExp.show()"/> 
        	<p:commandButton icon="ui-icon-trash" action="#{MBExperiencia.prepararExp}" title="Remover" oncomplete="excluirExp.show()"/> 
        	</p:column>
   		</p:dataTable>
   	</div>
   	<br />
   	<br />
 	<div align="right">
		<p:commandButton icon="ui-icon-circle-plus" value="Adicionar Nova Experiência" action="#{MBExperiencia.prepararNovo}" update="pnlExp" oncomplete="addExp.show()"/>
	</div>
	
	<p:dialog widgetVar="addExp" header="Nova Experiência" modal="true" position="center" 
				  closable="false" height="300" width="800"> 
        <p:panelGrid styleClass="semBorda" id="pnlExp">
       	<p:row>
        <p:column>Cargo * </p:column>
        <p:column>Data Admissão * </p:column>
        <p:column>Data Demissão </p:column>
       	</p:row>
        <p:row>
        <p:column><p:inputText size="60" value="#{MBExperiencia.beanExperiencia.cargoExp}"/></p:column>
        <p:column><p:inputMask mask="99/99/9999" value="#{MBExperiencia.dtAdm}"/></p:column>
        <p:column><p:inputMask mask="99/99/9999" value="#{MBExperiencia.dtDem}"/></p:column>
        </p:row>
        <p:row>
        <p:column>Empresa * </p:column>
        </p:row>
        <p:row>
        <p:column colspan="3"><p:inputText size="60" value="#{MBExperiencia.beanExperiencia.empresaExp}"/></p:column>
        </p:row>
        <p:row>
        <p:column>Cidade * </p:column>
        <p:column>UF * </p:column>
        </p:row>
        <p:row>
  		<p:column><p:inputText size="60" value="#{MBExperiencia.beanExperiencia.cidadeExp}"/></p:column> 
        <p:column><p:selectOneMenu value="#{MBExperiencia.beanExperiencia.ufExp}">  
   				<f:selectItem itemLabel="Selecione..." itemValue="" />
            	<f:selectItem itemLabel="AC" itemValue="AC" />  
            	<f:selectItem itemLabel="AL" itemValue="AL" />
            	<f:selectItem itemLabel="AP" itemValue="AP" />
            	<f:selectItem itemLabel="AM" itemValue="AM" />
            	<f:selectItem itemLabel="BA" itemValue="BA" />
            	<f:selectItem itemLabel="CE" itemValue="CE" />
            	<f:selectItem itemLabel="DF" itemValue="DF" />
            	<f:selectItem itemLabel="ES" itemValue="ES" />
            	<f:selectItem itemLabel="GO" itemValue="GO" />
            	<f:selectItem itemLabel="MA" itemValue="MA" />
            	<f:selectItem itemLabel="MT" itemValue="MT" />
            	<f:selectItem itemLabel="MS" itemValue="MS" />
            	<f:selectItem itemLabel="MG" itemValue="MG" />
            	<f:selectItem itemLabel="PA" itemValue="PA" />
            	<f:selectItem itemLabel="PB" itemValue="PB" />
            	<f:selectItem itemLabel="PR" itemValue="PR" />
            	<f:selectItem itemLabel="PE" itemValue="PE" />
            	<f:selectItem itemLabel="PI" itemValue="PI" />
            	<f:selectItem itemLabel="RJ" itemValue="RJ" />
            	<f:selectItem itemLabel="RN" itemValue="RN" />
            	<f:selectItem itemLabel="RS" itemValue="RS" />
            	<f:selectItem itemLabel="RO" itemValue="RO" />
            	<f:selectItem itemLabel="RR" itemValue="RR" />
            	<f:selectItem itemLabel="SC" itemValue="SC" />
            	<f:selectItem itemLabel="SP" itemValue="SP" />
            	<f:selectItem itemLabel="SE" itemValue="SE" />
            	<f:selectItem itemLabel="TO" itemValue="TO" />
           	</p:selectOneMenu></p:column>
        </p:row>
        <p:row>
        <p:column>Contato </p:column>
        <p:column>Telefone </p:column>
        </p:row>
        <p:row>
        <p:column><p:inputText size="60" value="#{MBExperiencia.beanExperiencia.contatoExp}"/></p:column>
        <p:column><p:inputText size="30" value="#{MBExperiencia.beanExperiencia.telExp}"/></p:column>
        </p:row>
		</p:panelGrid>
        <br />
        <div align="right">
        	<p:commandButton value="Cancelar" icon="ui-icon-circle-arrow-w" action="#{MBExperiencia.prepararNovo}" oncomplete="addExp.hide()"/>
        	<p:commandButton value="Salvar" icon="ui-icon-circle-plus" action="#{MBExperiencia.save}" update="tbExperiencia" oncomplete="addExp.hide()"/>
        </div>
 	</p:dialog>
        
    <p:confirmDialog widgetVar="excluirExp" message="Deseja Excluir?" header="Excluir Experiência" severity="alert" modal="true"
			position="center" closable="false" height="80" width="300" resizable="false">
		<div align="center">
			<p:commandButton value="Sim" action="#{MBExperiencia.remover}" oncomplete="excluirExp.hide()" update="tbExperiencia" />
			<p:commandButton value="Não" onclick="excluirExp.hide()"/>
		</div>
	</p:confirmDialog>
	</p:tab> 
    
    <p:tab id="tabConhecimento" title="Conhecimentos Tecnológicos"> 
    	<div align="center">
    	<p:dataTable id="tbConhecimento" var="ct" value="#{MBAlunoConhecimento.listaAlunoConhecimento}" emptyMessage="Nenhum registro foi localizado..." rowIndexVar="index" >  
    		<p:column>    
        		<f:facet name="header">Nome</f:facet>    
        		<h:outputText value="#{ct.conhecimentotecnologico.nomeConhecTec}"/>         
    		</p:column>
    		<p:column>    
        		<f:facet name="header">Nível</f:facet>    
        		<h:outputText value="#{ct.nivelConhecTec}" />        
    		</p:column>
    		<p:column styleClass="textoCen"> 	   
        	<p:commandButton icon="ui-icon-pencil" title="Editar" action="#{MBAlunoConhecimento.prepararCT}"
        						update=":DadosAlunos:tabDadosAlunos:pnlConhec" oncomplete="addConhec.show()"/> 
        	<p:commandButton icon="ui-icon-trash" title="Remover" action="#{MBAlunoConhecimento.prepararCT}" oncomplete="excluirCT.show()"/> 
        	</p:column>
   			</p:dataTable>
   		</div>
   		<br />
   		<br />
      	<div align="right">
			<p:commandButton icon="ui-icon-circle-plus" value="Adicionar Novo Conhecimento" action="#{MBAlunoConhecimento.prepararNovo}" update="pnlConhec" oncomplete="addConhec.show()"/>
		</div>
		<p:dialog widgetVar="addConhec" header="Novo Conhecimento Tecnológico" modal="true" position="center"
					closable="false" height="200" width="800"> 
	        <p:panelGrid styleClass="semBorda" columns="1" id="pnlConhec"> 
				Nome
		    	<p:selectOneMenu value="#{MBAlunoConhecimento.idconhec}" id="listaConhec">  
	            	<f:selectItem itemValue="" itemLabel="Selecione" />
	            	<f:selectItems value="#{MBAlunoConhecimento.listaConhec}" var="conhec" 
									itemLabel="#{conhec.nomeConhecTec}" itemValue="#{conhec.codConhecTec}"/> 
	            </p:selectOneMenu>   
	            Nível 
            	<p:selectOneMenu  value="#{MBAlunoConhecimento.beanAlunoConhecimento.nivelConhecTec}"> 
            		<f:selectItem itemValue="" itemLabel="Selecione" />
               		<f:selectItem itemValue="5" itemLabel="Básico" />  
               		<f:selectItem itemValue="8" itemLabel="Intermediário" />  
               		<f:selectItem itemValue="10" itemLabel="Avançado" />   
            	</p:selectOneMenu>   	
        	</p:panelGrid>
        	<div align="right">
        		<p:commandButton value="Cancelar" icon="ui-icon-circle-arrow-w" action="#{MBAlunoConhecimento.prepararNovo}" onclick="addConhec.hide()"/>
        		<p:commandButton value="Salvar" icon="ui-icon-circle-plus" action="#{MBAlunoConhecimento.save}" update="tbConhecimento" oncomplete="addConhec.hide()"/>
        	</div>
     	</p:dialog>	
     	
    	<p:confirmDialog widgetVar="excluirCT" message="Deseja Excluir?" header="Excluir Conhecimento Tecnológico" severity="alert" modal="true"
						position="center" closable="false" height="80" width="300" resizable="false">
			<div align="center">
				<p:commandButton value="Sim" action="#{MBAlunoConhecimento.remover}" update="tbConhecimento" oncomplete="excluirCT.hide()" />
				<p:commandButton value="Não" onclick="excluirCT.hide()"/>
			</div>
		</p:confirmDialog>
    </p:tab> 
    		   
    <p:tab id="tabArea" title="Área de Interesse"> 
    <p:fieldset>
  		<p:panelGrid id="cadCbo" styleClass="semBorda" columns="6">
   			Cargo
	    	<p:inputText size="40" disabled="true" id="txcbo" value="#{MBAlunoCbo.descCbo}"/>
	    	<p:commandButton icon="ui-icon-circle-zoomin" action="#{MBAlunoCbo.prepararNovo}" oncomplete="pesCBO.show()"/>
	    	Tempo de experiência  
            <p:selectOneMenu value="#{MBAlunoCbo.beanAlunoCbo.tempoExpCBO}"> 
            	<f:selectItem itemValue="" itemLabel="Selecione" /> 
               	<f:selectItem itemValue="0-6 meses" itemLabel="0-6 meses" />  
               	<f:selectItem itemValue="6 meses de 1 ano" itemLabel="6 meses de 1 ano" />  
               	<f:selectItem itemValue="1 a 2 anos" itemLabel="1 a 2 anos" /> 
               	<f:selectItem itemValue="acima de 2 anos" itemLabel="acima de 2 anos" />  
            </p:selectOneMenu> 
            <p:commandButton icon="ui-icon-disk" action="#{MBAlunoCbo.save}" update="tbAlunoCbo, :DadosAlunos:tabDadosAlunos:msg, cadCbo"/>
     	</p:panelGrid>
     	</p:fieldset>
     	<br />
     	<div align="right">
     	<h:outputText value="* Cadastre somente 3 áreas de interesse" />
     	</div>
     	<br />
        <p:dataTable id="tbAlunoCbo" var="cb" value="#{MBAlunoCbo.listaAlunoCbo}" emptyMessage="Nenhum registro foi localizado..." rowIndexVar="index" >  
    		<p:column>    
        		<f:facet name="header">Cargo</f:facet>    
        		<h:outputText value="#{cb.cbo.descCBO}"/>         
    		</p:column>
    		<p:column>    
        		<f:facet name="header">Experiência</f:facet>    
        		<h:outputText value="#{cb.tempoExpCBO}" />        
    		</p:column>
			<p:column styleClass="textoCen"> 	   
        		<p:commandButton icon="ui-icon-trash" title="Remover" actionListener="#{MBAlunoCbo.delete}" update="tbAlunoCbo"/> 
        	</p:column>
     	</p:dataTable>
     		
     	<p:dialog widgetVar="pesCBO" modal="true" position="center" closable="false" height="200" width="800" resizable="false"> 
	        <p:panelGrid styleClass="semBorda" style="width:400px" columns="2"> 
			Pesquisar por: 
			<p:selectOneMenu value="#{MBAlunoCbo.tipoPes}"> 
	           	<f:selectItem itemValue="cod" itemLabel="Código" />  
	          	<f:selectItem itemValue="desc" itemLabel="Descrição" />    
	        </p:selectOneMenu>
		    Descrição: <p:inputText value="#{MBAlunoCbo.dadoPes}"/>    	
        	</p:panelGrid>
        	<div align="right">
        		<p:commandButton value="Cancelar" icon="ui-icon-circle-arrow-w" oncomplete="pesCBO.hide()"/>
        		<p:commandButton value="Pesquisar" icon="ui-icon-circle-plus" action="#{MBAlunoCbo.pesquisar}" update="tbCBO"/>
        	</div>
        	
        <p:dataTable id="tbCBO" var="cbo"  height="600" width="800" value="#{MBAlunoCbo.cboSelec}" emptyMessage="Nenhum registro foi localizado..."> 
        	    <p:column headerText="Código">  
            		<h:outputText value="#{cbo.codCBO}" />    
 		    	</p:column>    
  		        <p:column headerText="Descrição">  
        			<h:outputText value="#{cbo.descCBO}" />  
          	    </p:column>  
    	         <p:column>
    	             <p:commandButton icon="ui-icon-check" action="#{MBAlunoCbo.selecionarCBO}" oncomplete="pesCBO.hide()" update=":DadosAlunos:tabDadosAlunos:txcbo" />    	          
    	        </p:column>   
           </p:dataTable>       	         	  
     	</p:dialog>	
     	
     	<p:dialog widgetVar="msg" id="msg" modal="true" position="center" closable="false" 
     				height="100" width="100" resizable="false" rendered="#{MBAlunoCbo.abrirDialog}"> 
	        <h:outputText value="#{MBAlunoCbo.msg}" />
        	<div align="center">
        		<p:commandButton value="OK" action="#{MBAlunoCbo.fecharMsg}"/>
        	</div>	         	  
        </p:dialog>	
    </p:tab>  
  
    <p:tab id="OutrasInfo" title="Outras Informações">  
    <h:panelGrid>
        	<p:row>
        	<p:column width="200" style="text-align: left">Disponibilidade de Horário</p:column>  
        	</p:row>
        	
        	<p:row>
   			<p:column colspan="2">
   			<h:panelGrid columns="12" >
   			<p:selectOneRadio id="txHorario" value="#{MBAluno.beanAluno.horarioAluno}" disabled="#{MBAluno.habilitar2}">
   				<f:selectItem itemValue="Manha" itemLabel="Manhã"/>
   				<f:selectItem itemValue="Tarde" itemLabel="Tarde"/>
   				<f:selectItem itemValue="Noite" itemLabel="Noite"/>
   				<f:selectItem itemValue="Integral" itemLabel="Integral"/>
   				<f:selectItem itemValue="FreeLancer" itemLabel="FreeLancer"/>
   			</p:selectOneRadio>   		
            </h:panelGrid>
            </p:column>
  			</p:row>
  			<br />
  			<p:row>
        	<p:column width="200" style="text-align: left">Resumo das Qualificações Profissionais</p:column>  
        	</p:row>
        	
        	<p:row>
        	<p:column><p:inputTextarea rows="6" cols="100" value="#{MBAluno.beanAluno.qualiAluno}" id="txQuali" disabled="#{MBAluno.habilitar2}"/></p:column>  
        	</p:row>
        	
        	<p:row>
        	<p:commandButton value="#{MBAluno.nomeBotao2}" icon="ui-icon-disk" ajax="false" action="#{MBAluno.salvarOutros}" update="txHorario, txQuali"/> 
        	</p:row>
		</h:panelGrid>  
	</p:tab>  
</p:tabView> 
</h:form>
</h:body>
</html>

